import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;

public class FileCopy_plus {
    public static void main(String[] args) throws IOException {
        FileWriter fw = new FileWriter("MyFile\\src\\tmp\\frtest_cp.txt");
        FileReader fr = new FileReader("MyFile\\src\\tmp\\frtest.txt");
        char [] chs = new char[1024];
        int len;
        while((len = fr.read(chs)) != -1)
            fw.write(chs,0,len);
        fw.close();
        fw.close();
    }
}
